<!--// slideshow module //-->

<div id="Rotator-SlideShow" class="mod mod-rotator">
  <div class="content">

    <!--// Slideshow //-->
    <div class="slideshow">
      <?php foreach($data as $reference) : ?>
        <?php if(!empty($reference)) : ?>
          <?php 
            $image = $reference->field_image ? image_style_url('scale_644', $reference->field_image['und'][0]['uri']) : '#';
            $image_attr = getimagesize($image);
          ?>
          <?php $path_info = parse_url($image); ?>
          <div class="slide"><a href="<?php print url('node/' . $reference->nid); ?>"><img src="<?php print $image; ?>" height="<?php print $image_attr[1]; ?>" /></a></div>
        <?php endif; ?>
      <?php endforeach; ?>
    </div>

    <ul id="Rotator-SlideShow-Pager" class="carousel jcarousel-skin-tango">
      <?php foreach($data as $reference) : ?>
        <?php if(!empty($reference)) : ?>
          <?php $image = $reference->field_image ? image_style_url('thumb_75x75', $reference->field_image['und'][0]['uri']) : '#'; ?>
          <li><a href="#"><img src="<?php print $image; ?>" /></a></li>
        <?php endif; ?>
      <?php endforeach; ?>
    </ul>

  </div>
</div> <!--// mod-rotator //-->

